<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/19 0019
 * Time: 下午 3:09
 */
namespace app\article\validate;
class ValiLike{
    const errmsg=[
        'type_id.require'   =>10011,#缺少参数
        'type.require'      =>10011,#缺少参数
        'user_id.require'   =>10021
    ];
    static function like_add(){
        $rule =[
            'user_id'   =>'require',
            'type_id'   =>'require',
            'type'      =>'require'
        ];
        $message =self::errmsg;
        return ['rule'=>$rule,'message'=>$message];
    }
}